using System;

namespace RBAC.Domain.Dto.Output
{
    /// <summary>
    /// 采购发票明细表-行（联查发票、供应商、物料）
    /// 一行即一条物料行，包含所属单据的基础信息
    /// </summary>
    public class PurchaseInvoiceDetailRowDto
    {
        // 发票主信息
        public int InvoiceId { get; set; }
        public string DocumentCode { get; set; }
        public DateTime InvoiceDate { get; set; }
        public string DocumentDate { get; set; }
        public string BusinessType { get; set; }
        public string DocumentStatus { get; set; }

        // 供应商
        public long SupplierId { get; set; }
        public string SupplierName { get; set; }

        // 发票属性
        public string InvoiceNumber { get; set; }
        public string TaxNumber { get; set; }
        public string InvoiceType { get; set; }

        // 物料行
        public int PurchaseInvoiceMaterialsId { get; set; }
        public string MaterialCode { get; set; }
        public string MaterialName { get; set; }
        public string ModelSpecifications { get; set; }
        public string MainMeasurement { get; set; }
        public decimal Number { get; set; }
        public decimal UnitPrice { get; set; }
        public decimal Amount { get; set; }
        public decimal TaxRate { get; set; }
        public decimal TaxAmount { get; set; }
        public decimal PriceTaxTotal { get; set; }

        // 其它来源字段
        public string PurchaseOrderNumber { get; set; }
        public string InboundOrderNumber { get; set; }
        public string Warehouse { get; set; }
    }
}
